import request from "@/util/request";
import type { DateRangeDto } from '../../common'
import { da } from "element-plus/es/locales.mjs";

export const userStatistics = (date: DateRangeDto) => request({
    url: '/admin/report/userStatistics',
    method: 'get',
    params: date
})

export const turnoverStatistics = (date: DateRangeDto) => request({
    url: '/admin/report/turnoverStatistics',
    method: 'get',
    params: date
})

export const ordersStatistics = (date: DateRangeDto) => request({
    url: '/admin/report/ordersStatistics',
    method: 'get',
    params: date
})

export const top10 = (date: DateRangeDto) => request({
    url: '/admin/report/top10',
    method: 'get',
    params: date
})